﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Repeater.aspx.cs" Inherits="Loginter.驾驶员管理.Repeater" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>晶科物流管理系统</title>
    <link href="../css/bootstrap.css" rel="stylesheet" />
    <link href="../css/css.css" rel="stylesheet" />
    <script src="../js/jquery1.9.0.min.js"></script>
    <script src="../js/bootstrap.min.js"></script>
    <script src="../js/sdmenu.js"></script>
    <script src="../js/laydate/laydate.js"></script>
    <style type="text/css">
        .auto-style2 {
            height: 51px;
        }
    </style>
</head>

<body>
    <form id="form1" runat="server">
        <div class="header">
            <div class="logo">
               <img src="../img/logo.png" />
            </div>

            <div class="header-right">
                <i class="icon-question-sign icon-white"></i><a href="#">帮助</a> <i class="icon-off icon-white"></i><a id="modal-973558" href="#modal-container-973558" role="button" data-toggle="modal">注销</a> <i class="icon-user icon-white"></i><a href="#">开票员的工作平台</a> <i class="icon-envelope icon-white"></i><a href="#">发送短信</a>
                <div id="modal-container-973558" class="modal hide fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="width: 300px; margin-left: -150px; top: 30%">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                        <h3 id="myModalLabel">注销系统
                        </h3>
                    </div>
                    <div class="modal-body">
                        <p>
                            您确定要注销退出系统吗？
                        </p>
                    </div>
                    <div class="modal-footer">
                        <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
                        <a class="btn btn-primary" style="line-height: 20px;" href="登录.html">确定退出</a>
                    </div>
                </div>
            </div>
        </div>
        <!-- 顶部 -->

        <div id="middle">
            <div class="left">

                <script type="text/javascript">
                    var myMenu;
                    window.onload = function () {
                        myMenu = new SDMenu("my_menu");
                        myMenu.init();
                    };
                </script>

                <div id="my_menu" class="sdmenu">
                    <div>
                        <span>车辆管理</span>
                        <a href="../车辆管理/AddTruckList.aspx">添加车辆信息</a>
                        <a href="../车辆管理/AddTruckTeam.aspx">添加车队信息</a>
                        <a href="../车辆管理/TruckInfoList.aspx">车辆信息维护</a>
                        <a href="../车辆管理/TruckRepeater.aspx">车辆repeater信息维护</a>
                        <a href="../车辆管理/TruckTeamInfo.aspx">车队信息维护</a>
                        <a href="../车辆管理/UpdateTruckList.aspx">修改车辆信息</a>
                        <a href="../车辆管理/UpdateTruckTeam.aspx">修改车队信息</a>
                    </div>
                    <div>
                        <span>车辆调度</span>
                        <a href="../车辆调度/DiaoDuTruck.aspx">调度车辆</a>
                        <a href="../车辆调度/TruckDiaoDuGunaLi.aspx">车辆调度管理</a>
                    </div>
                    <div>
                        <span>成本核算</span>
                        <a href="../成本核算/ChengBenHeSuan.aspx">成本核算</a>
                        <a href="../成本核算/ChengBenWeiHu.aspx">成本维护</a>
                    </div>
                    <div>
                        <span>承运单管理</span>
                        <a href="../承运单管理/AddCarriers.aspx">添加承运单</a>
                        <a href="../承运单管理/CarriersGuanli.aspx">承运单管理</a>
                        <a href="../承运单管理/CarriersXiangQing.aspx">承运单详情</a>
                        <a href="../承运单管理/JieShouQianShouCarriers.aspx">接收签收承运单</a>
                        <a href="../承运单管理/UpdateCarries.aspx">修改承运单</a>
                    </div>
                    <div>
                        <span>登录用户信息</span>
                        <a href="../登录用户信息/AddUserInfo.aspx">添加用户信息</a>
                        <a href="../登录用户信息/Login.aspx">登录</a>
                        <a href="../登录用户信息/UpdateUserInfo.aspx">修改用户信息</a>
                        <a href="../登录用户信息/UserInfo.aspx">用户信息</a>
                        <a href="../登录用户信息/UserInfoXiangQing.aspx">用户信息详情</a>
                    </div>
                    <div>
                        <span>驾驶员管理</span>
                        <a href="../驾驶员管理/AddDriver.aspx">添加驾驶员信息</a>
                        <a href="../驾驶员管理/DriverBindCar.aspx">驾驶员绑定车辆</a>
                        <a href="../驾驶员管理/DriverInfoList.aspx">驾驶员信息维护</a>
                        <a href="../驾驶员管理/Repeater.aspx">驾驶员Repeater信息维护</a>
                        <a href="../驾驶员管理/UpdateDriverInfo.aspx">修改驾驶员信息</a>
                    </div> 
                    <div>
                        <span>系统维护</span>
                        <a href="../系统维护/AddUserInfo.aspx">添加用户</a>
                        <a href="../系统维护/SyslogSelect.aspx">日志查询</a>
                        <a href="../系统维护/UpdatePwaddes.aspx">修改密码</a>
                        <a href="../系统维护/UserInfoWeiHu.aspx">用户维护</a>
                        <a href="../系统维护/XiTongWeiHu.aspx">系统维护</a>
                    </div>
                    <div>
                        <span>运力查询</span>
                        <a href="../运力查询/SelectGoods.aspx">查询承运车队</a>
                        <a href="../运力查询/SelectGoodsTruck.aspx">查询承担车辆</a>
                        <a href="../运力查询/SelectGoodsTruckTeam.aspx">查询历史承运单</a>
                    </div>
                </div>

            </div>
            <div class="Switch"></div>
            <script type="text/javascript">
                $(document).ready(function (e) {
                    $(".Switch").click(function () {
                        $(".left").toggle();

                    });
                });
            </script>

            <div class="right" id="mainFrame">

                <div class="right_cont">
                    <ul class="breadcrumb">
                        当前位置：
  <a href="#">首页</a>
                        <span class="divider">/</span>
                        <a href="#">业务处理</a>
                        <span class="divider">/</span>
                        电脑开票   
     <h3 style="margin: 0 auto; text-align: center;">驾驶员Repeater信息维护</h3>
                        <hr />
                        <table style="text-align: right; width: 1000px;">
                            <tr>
                                <td>姓名：</td>
                                <td>
                                    <asp:TextBox ID="txt_name" runat="server"></asp:TextBox></td>
                                <td>性别：</td>
                                <td>
                                    <asp:RadioButtonList ID="rbl_sex" runat="server" RepeatDirection="Horizontal">
                                        <asp:ListItem Value="-1" Selected="True">不限</asp:ListItem>
                                        <asp:ListItem Value="0">男</asp:ListItem>
                                        <asp:ListItem Value="1">女</asp:ListItem>
                                    </asp:RadioButtonList></td>
                                <td>身份证号码：</td>
                                <td>
                                    <asp:TextBox ID="txt_idcard" runat="server"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td>生日：</td>
                                <td>
                                    <asp:TextBox ID="txt_birth_in" runat="server"></asp:TextBox></td>
                                <td>至：</td>
                                <td>
                                    <asp:TextBox ID="txt_birth_end" runat="server"></asp:TextBox></td>
                                <td>车辆绑定状态：</td>
                                <td>
                                    <asp:RadioButtonList ID="rbl_bindingstate" runat="server" RepeatDirection="Horizontal">
                                        <asp:ListItem Selected="True" Value="-1">不限</asp:ListItem>
                                        <asp:ListItem Value="0">未绑定</asp:ListItem>
                                        <asp:ListItem Value="1">已绑定</asp:ListItem>
                                    </asp:RadioButtonList></td>
                            </tr>
                            <tr>
                                <td>电话：</td>
                                <td>
                                    <asp:TextBox ID="txt_phone" runat="server"></asp:TextBox></td>
                                <td>车队：</td>
                                <td>
                                    <asp:DropDownList ID="ddl_teamname" runat="server"></asp:DropDownList></td>
                            </tr>
                            <tr>
                                <td>聘用日期：</td>
                                <td>
                                    <asp:TextBox ID="txt_checkintime_in" runat="server"></asp:TextBox></td>
                                <td>至：</td>
                                <td>
                                    <asp:TextBox ID="txt_checkintime_end" runat="server"></asp:TextBox></td>
                                <td></td>
                                <td style="text-align: left">
                                    <asp:Button ID="btn_search" runat="server" Text="检索" OnClick="btn_search_Click" />
                                    <asp:Button ID="btn_reset" runat="server" Text="重置" OnClick="btn_reset_Click" />
                                    <asp:Button ID="btn_add" runat="server" Text="添加" OnClick="btn_add_Click" />
                                </td>
                            </tr>
                        </table>
                        <hr />
                        <table style="text-align: center; margin: 0 auto; width: 1000px;">
                            <tr>
                                <td>驾驶员编号</td>
                                <td>姓名</td>
                                <td>性别</td>
                                <td>电话</td>
                                <td>生日</td>
                                <td>车队</td>
                                <td>数据记录状态</td>
                                <td>身份证号码</td>
                                <td>聘用日期</td>
                                <td>车牌号码</td>
                                <td>车辆绑定</td>
                                <td>操作</td>
                            </tr>

                            <asp:Repeater ID="repe_Driver" runat="server" OnItemCommand="repe_Driver_ItemCommand">
                                <ItemTemplate>
                                    <tr>
                                        <td><%# Eval("DriverID") %></td>
                                        <td><%# Eval("Name") %></td>
                                        <td><%# Eval("Sex") %></td>
                                        <td><%# Eval("Phone") %></td>
                                        <td><%# Eval("Brith") %></td>
                                        <td><%# Eval("TeamName") %></td>
                                        <td><%# Eval("IsDelete") %></td>
                                        <td><%# Eval("IDCard") %></td>
                                        <td><%# Eval("CheckInTime") %></td>
                                        <td><%# Eval("Number") %></td>
                                        <td>
                                            <asp:LinkButton ID="lb_Bind" runat="server" Visible='<%# GetBindState(Convert.ToInt32(Eval("driverid"))) %>' CommandArgument='<%# Eval("DriverID") %>' OnClick="lb_Bind_Click">车辆绑定</asp:LinkButton>
                                            <%--<a href='DriverBindCar.aspx?Name=<%# Eval("Name") %>&TeamName=<%# Eval("TeamName") %>'>车辆绑定</a>--%>
                                            <asp:LinkButton ID="lb_UnBind" Visible='<%# GetUnBindState(Convert.ToInt32(Eval("driverid")),Convert.ToInt32(Eval("state"))) %>' runat="server">解除绑定</asp:LinkButton>
                                            <%--<asp:LinkButton ID="lbl_removebinding" runat="server">解除绑定</asp:LinkButton>--%>
                                        </td>
                                        <td>
                                            <a href='UpdateDriverInfo.aspx?DriverID=<%# Eval("DriverID") %>'>修改</a>
                                            <asp:LinkButton ID="lbl_Isdelete" OnClientClick="return confirm('您确定要删除吗？')" runat="server" CommandArgument='<%# Eval("DriverID") %>' CommandName="del">删除</asp:LinkButton>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
    </div>
    </form>
</body>
</html>
